<?php

!defined('IN_APP') && exit('Access Denied');

class indexcontrol extends base {

    function __construct(& $get, & $post) {
        parent::__construct($get, $post);
        $this->load("user");
        
    }

    function ondefault() {
       // $_ENV['message']->addsms(array('13552005608'),'测试短信');
        if ($this->user['uid'] !== 0) {
            header("Location:index.php?c=customer&a=daily");
        } else {
            header("Location:index.php?c=user&a=login");
        }
    }

}

?>